package edu.sctu.zcy.month201507.summer7;

/**
 * Created by zcy on 2015/7/13.
 */
public class ProgramEntry {

    public static void main(String[] args) {

        System.out.println("8+88+888+…… = "+getResult());


    }

    public static double getResult(){

        double result = 0;

        StringBuffer stringBuffer = new StringBuffer();

        for (int i = 0; i < 10; i++) {

            result = Double.parseDouble(String.valueOf(stringBuffer.append("8")));
        }
        return result;
    }
}
